/*
 * @Descripttion: GGB
 * @version: 1.0
 * @Author: GGB
 * @Date: 2021-08-19 07:26:39
 * @LastEditors: GGB
 * @LastEditTime: 2021-08-19 07:28:13
 */
import 'package:flutter/material.dart';
import 'package:flutter_data_center/utills/color_utils.dart';

class PushTask extends StatelessWidget {
  const PushTask({Key key, this.onTap}) : super(key: key);
  final VoidCallback onTap;

  @override
  Widget build(BuildContext context) => Container(
        height: 60,
        width: double.infinity,
        decoration: BoxDecoration(
          boxShadow: [
            BoxShadow(
              offset: Offset(0, 0),
              blurRadius: 30,
              color: Color.fromRGBO(8, 209, 135, 0.25),
            )
          ],
        ),
        child: ClipRRect(
          borderRadius: BorderRadius.circular(30),
          child: ElevatedButton(
            child: Text(
              "发布任务",
              style: TextStyle(
                fontSize: 24,
                fontWeight: FontWeight.w500,
              ),
            ),
            style: ElevatedButton.styleFrom(
              primary: gColor("#08D187"),
            ),
            onPressed: () => onTap,
          ),
        ),
      );
}
